<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>V-for循环遍历对象的数组</title>
    <script src="js/vue.js"></script>
</head>
<body>

<div id="app">
    <p v-for="stu in student">
        <span v-for="(v,k) in stu">{{k}} 的值是 {{v}} &nbsp;&nbsp;</span>
    </p>
</div>

<script>
    new Vue({
        el:"#app",
        data:{
           student:[
               {
                   name:"AA",
                   age:18
               },
               {
                   name:"FF",
                   age:19
               },
               {
                   name:"KK",
                   age:10
               }
           ]
        }
    });
</script>
</body>
</html>